import { http } from "@/utils/https"
import type { GoodsResult } from '@/types/goods'

export const getGoodsByIdAPI = (id: string) => {
    return http<GoodsResult>({
        method: "GET",
        url: '/goods',
        data: {
            id
        }
    })
}